 <!doctype html>
 <html lang="zh-CN">
 <head>
   <meta charset="UTF-8">
   <link rel="stylesheet" href="../view/admin/css/common.css">
   <link rel="stylesheet" href="../view/admin/css/main.css">
   <script type="text/javascript" src="../view/admin/js/jquery.min.js"></script>
   <script type="text/javascript" src="../view/admin/js/colResizable-1.3.min.js"></script>
   <script type="text/javascript" src="../view/admin/js/common.js"></script>
   
   <script type="text/javascript">
      $(function(){  
        $(".list_table").colResizable({
          liveDrag:true,
          gripInnerHtml:"<div class='grip'></div>", 
          draggingClass:"dragging", 
          minWidth:30
        }); 
        
      }); 
   </script>
   <title>权限列表</title>
 </head>
 <body>
   
     <div id="table" class="mt10">
        <div class="box span10 oh">
              <table width="100%" border="0" cellpadding="0" cellspacing="0" class="list_table">
                <tr>
                   <th width="100%" colspan="5">用户列表</th>
                  
                </tr>
                <tr class="tr" >
                  <td class="td_center">ID</td>
                  <td class="td_center">权限结构</td>
                  <td class="td_center">名称</td>
                  <td class="td_center">类型</td> 
                  <td class="td_center">操作</td>
                </tr>
                
              <?php foreach ($data as $v ){ ?>
                <tr align='center' class="tr" >
                  <td><?php echo $v['id']?></td>
                  <td align="left"><?php echo str_repeat('&nbsp;&nbsp;&nbsp;',$v['level']*2),$v['title']; ?></td>
                  <td><?php echo $v['name']?></td>
                  <td><?php if($v['level']==1){echo '<div style="color:red">项目</div>';}elseif($v['level']==2){echo '<div style="color:green">模块</div>';}else{echo '<div style="color:blue">操作</div>';}?></td>
                  <td> <a href="index.php?c=user&a=powerDel&id=<?php echo $v['id']?>" onclick="return confirm('你确认删除此条信息？')">删除</a></td>
                </tr>

                <?php }?>
            
              </table>
              <div class="page mt10">
                <div class="pagination">
                  <ul>
                      <li class="first-child"><a href="#">首页</a></li>
                      <li class="disabled"><span>上一页</span></li>
                      <li class="active"><span>1</span></li>
                      <li><a href="#">2</a></li>
                      <li><a href="#">下一页</a></li>
                      <li class="last-child"><a href="#">末页</a></li>
                  </ul>
                </div>
              </div>
        </div>
     </div>
 </body>
 </html>